package com.zhiche.lisa.mdm.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 运输工具类型
 * </p>
 *
 * @author qichao
 * @since 2018-06-30
 */
@TableName("lisa_transportation_type")
public class TransportationType extends Model<TransportationType> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 编码
     */
	private String code;
    /**
     * 值
     */
	private String value;
    /**
     * 业务类型编码
     */
	@TableField("tos_code")
	private String tosCode;
    /**
     * 对应omt值
     */
	@TableField("otm_value")
	private String otmValue;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getTosCode() {
		return tosCode;
	}

	public void setTosCode(String tosCode) {
		this.tosCode = tosCode;
	}

	public String getOtmValue() {
		return otmValue;
	}

	public void setOtmValue(String otmValue) {
		this.otmValue = otmValue;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "TransportationType{" +
				"id=" + id +
				", code='" + code + '\'' +
				", value='" + value + '\'' +
				", tosCode='" + tosCode + '\'' +
				", otmValue='" + otmValue + '\'' +
				"} " + super.toString();
	}
}
